<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>味正商城</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/lib/sm.css">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/lib/sm-extend.css">
    <link rel="stylesheet" type="text/css" href="${staticpath}/base/webUpload/webuploader.css">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/master.css">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/base.css">
    <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_561750_kb4hk5q4bahe61or.css">

    <style>
        .webuploader-pick {
            width: 100%;
            padding: 0;
            background: none;
            color: none;
        }

    </style>
</head>
<body>
<div class="page-group">
    <div class="page page-current">
        <!--头部部分 !-->
        <header>
            <h1 class="title xl">个人信息</h1>
            <i class="iconfont icon-more  xxl z-in ml10 clickbetter"
               onclick="window.location.href='/rest/front/user/toMyPage'"></i>
            <span class="pull-right  z-in mr10 l" id="inf-btn">保存</span>
        </header>
        <div class="wrapper inf-content bot0">
            <div id="upPic" class="white">
                <li class="inf-item item flex avator-item">
                    <div class=" xl">头像</div>
                    <div   class="pic-box mr10 cell-main right"></div>
                    <i class="iconfont icon-more1 xl hui"></i>
                </li>
            </div>
            <ul class="underline upline white">
                <li class="inf-item item flex">
                    <div class="xl">昵称</div>
                    <input class="name hui l mr10 cell-main right" placeholder="用户昵称">
                    <i class="iconfont icon-more1 xl hui"></i>
                </li>
            </ul>
            <ul class="underline white">
                <li class="inf-item item flex" >
                    <div class="mr10 xl">性别</div>
                    <div class="cell-main l sex right mr10" id="sex"></div>
                    <i class="iconfont icon-more1 xl hui"></i>
                </li>
            </ul>
            <ul class="underline white">
                <li class="inf-item item flex phone-item-link">
                    <div class="cell-main xl">绑定手机</div>
                    <div class="phone-div hui l mr10">未绑定</div>
                    <i class="iconfont icon-more1 xl hui"></i>
                </li>
            </ul>
        </div>
        <div class="expand"></div>
        <div class="sex-box item ">
            <h1 class=" xxl">性别</h1>
            <li class="select-sex flex middle">
                <h1 class=" xl">男</h1>
                <label  class="cell-main right" value="男">
                    <input type="checkbox" class="hide man" >
                    <i class="iconfont  max choose"></i>
                </label>
            </li>
            <div class="upline"></div>
            <li class="select-sex flex middle">
                <h1 class="xl ">女</h1>
                <label class="cell-main right"  value="女">
                    <input type="checkbox" class="hide woman">
                    <i class="iconfont  max choose"></i>
                </label>
            </li>
        </div>
    <script type='text/javascript' src='${staticpath}/front/dist/js/lib/zepto.js' charset='utf-8'></script>
    <script src="//libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script type='text/javascript' src='${staticpath}/base/webUpload/webuploader.min.js' charset='utf-8'></script>
    <script>jQuery.noConflict();</script>
    <script type='text/javascript' src='${staticpath}/front/dist/js/lib/sm.js' charset='utf-8'></script>
    <script type='text/javascript' src='${staticpath}/front/dist/js/lib/sm-extend.js' charset='utf-8'></script>
    <script type='text/javascript' src='${staticpath}/front/dist/js/user/userCenter.js' charset='utf-8'></script>
    <script type="text/javascript">
        var headImg = '';
        var uploader = WebUploader.create({
            auto: true,
            swf: '${staticpath}/common/ueditor/third-party/webuploader/Uploader.swf',
            server: '${basepath}/rest/front/ued/config?action=uploadimage',
            pick: '#upPic',
            accept: {
                title: 'Images',
                extensions: 'gif,jpg,jpeg,bmp,png',
                mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png,'
            }
        });
        uploader.on('uploadSuccess', function (file, response) {
            uploader.removeFile(file);
            headImg = "/" + response.url;
            var imgHtml = '<img src="' + headImg + '" class="avator">';
            $(".pic-box").html(imgHtml);
        });
    </script>
</body>
</html>
